//
//  UIActionSheet+MLKit.m
//  Pods
//
//  Created by molon on 15/10/29.
//
//

#import "UIActionSheet+MLKit.h"
#import <objc/runtime.h>

static char extraObjectKeyForUIAlertView;

@implementation UIActionSheet (MLKit)

- (id)extraObject
{
    return objc_getAssociatedObject(self,&extraObjectKeyForUIAlertView);
}

- (void)setExtraObject:(id)extraObject
{
    static NSString * key = @"extraObject";
    
    [self willChangeValueForKey:key];
    objc_setAssociatedObject(self, &extraObjectKeyForUIAlertView, extraObject, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
    [self didChangeValueForKey:key];
}

@end